package com.smtlive.domain;

import org.springframework.security.core.GrantedAuthority;

public class SmtGrantedAuthority implements GrantedAuthority {
	
	Role role;

	/**
	 * 
	 */
	private static final long serialVersionUID = 735378066383135336L;

	public SmtGrantedAuthority(Role role) {
		this.role = role;
	}
	
	@Override
	public String getAuthority() {
		return "ROLE_" + role.getRole();
	}

}
